from django.urls import path
from django.urls import re_path
from . import views
urlpatterns = [
    # 默认首页
    path('', views.book_index, name='book_index'),
    # 添加图书
    path('book_add/', views.book_add, name='book_add'),
    # 图书详情
    path('book_detail/<int:book_id>/', views.book_detail, name='book_detail'),
    # 删除图书
    path('book_delete/', views.book_delete, name='book_delete'),
    # 编辑图书详情
    path("book_edit/<int:book_id>/", views.book_edit, name="book_edit"),
]
